<div class="widget google-calendar">
  <div>
    {{ title }}
    <!-- From {{ from }} to {{ to }} -->
    {% if events|length > 0 %}
    <ul>
      {% for k,event in events %}
        <li class="event {{ event.status }} {{ event.type }} {{ k|even ? 'even' : 'odd' }} {% if loop.first %}first{% elseif loop.last %}last{% endif %}">
          <h3 class="title">{{ event.title }}</h3>
          <ul class="event-meta">
      
            {% if event.start %}
            <li class="start">
              {% if event.end %}Empieza el {% else %}Día: {% endif %}<span class="date">{{ event.start.format('d-m-Y') }}</span>{% if event.hasTimePart %} a las <span class="time">{{ event.start.format('H:i') }}</span>{% endif %}
            </li>
            {% endif %}
      
            {% if event.end %}
            <li class="end">
              Termina {% if event.type != 'full' and event.type != 'single' %} el <span class="date">{{ event.end.format('d-m-Y') }}</span> {% endif %}{% if event.hasTimePart %}a las <span class="time">{{ event.end.format('H:i') }}</span>{% endif %}
            </li>
            {% endif %}
      
            {% if event.location %}
            <li class="loc">
              Lugar: <span class="location">{{ event.location }}</span>
            </li>
            {% endif %}
      
            {% if event.description %}
            <li class="desc">
              {{ event.description|textile }}
            </li>
            {% endif %}
      
          </ul>
        </li>
      {% endfor %}
    </ul>
    {% else %}
    <p class="noevents">Sin planes en el horizonte</p>
    {% endif %}
  </div>
</div>